package cn.growthgate.fgo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 画师
 * </p>
 *
 * @author GrowthGate
 * @since 2019-05-23
 */
@TableName("t_data_painter")
public class Painter extends Model<Painter> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 名称
	 */
	@NotBlank(message = "名称不能为空")
	private String name;

	/**
	 * 日文名称
	 */
	private String jName;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return jName
	 */
	public String getjName() {
		return jName;
	}

	/**
	 * @param jName
	 *            要设置的 jName
	 */
	public void setjName(String jName) {
		this.jName = jName;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Painter [id=" + id + ", name=" + name + ", jName=" + jName + "]";
	}

}
